package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

/**
 * 浏览历史对象 history
 *
 * @author AousVolad
 * @date 2024-06-27
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
public class History extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 历史ID
     */
    @Excel(name = "历史ID")
    private Long historyId;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;
    /**
     * 用户信息
     */
    private Users users;

    /**
     * 文章ID
     */
    @Excel(name = "文章ID")
    private Long articlesId;
    /**
     * 新闻信息
     */
    private Videos videos;

    /**
     * 视频ID
     */
    @Excel(name = "视频ID")
    private Long videosId;


    private Articles articles;

    /**
     * 浏览时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "浏览时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date viewedAt;

}
